<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="apple-mobile-web-app-title" content="阿福易购">
    <meta content="telephone=no" name="format-detection" />
    <meta content="email=no" name="format-detection" />
    <!-- uc、qq浏览器 -->
    <meta name="screen-orientation" content="portrait">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <meta name="x5-orientation" content="portrait">
    <meta name="x5-fullscreen" content="true">
    <meta name="x5-page-mode" content="app">
    <meta name="HandheldFriendly" content="true">
    <meta name="MobileOptimized" content="320">
    <meta name="keywords" content="{{$SEO['keywords']}}"/>
    <meta name="description" content="{{$SEO['description']}}"/>
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <title>售后记录_{{$SEO['title']}}</title>
    <link rel="stylesheet" href="{{ asset('/build/css/app.min.css') }}">
</head>
<body ontouchstart="">

@inject('orderGoodsService','App\Interfaces\OrderGoodsService')

@inject('orderService','App\Interfaces\OrderService')

@inject('refundGoodsOperationRecordService','App\Interfaces\RefundGoodsOperationRecordService')

@inject('goodsService','App\Interfaces\GoodsService')

@inject('pictureService','App\Interfaces\PictureService')


<header class="ui-header ui-header-stable  af-header">
    <ul class="ui-row-flex">
        <li class="ui-col ui-flex ui-flex-pack-start">
            <i ontouchstart="window.history.back();" class="ui-icon-return"></i>
        </li>
        <li class="ui-col ui-flex ui-flex-pack-center">
            <h1>售后记录</h1>
        </li>
        <li class="ui-col ui-flex ui-flex-pack-end">
        </li>
    </ul>
</header>

<div class="ui-container">


        <ul class="ui-tab-content" style="margin: 5px 0px 10px;" >
        <!-- <ul class="ui-list ui-list-pure ui-border-tb" style="margin-bottom: 10px;" > -->
            <li class="current">

                @foreach($refundOrders as $key=>$item)

                <?php

                	@$orderGoods = $orderGoodsService->getByOrderGoodsId($item->order_goods_id);

			        $goods = $goodsService->get($item->goods_id);

                ?>

                <div class="ui-my-order ui-border-tb">
                    <div class="ui-my-order-header" onclick="window.location.href='/wap/my/refund'">
                        <div class="title">
                            售后单号：{{@$item->refund_sn}}
                        </div>
                        <div class="status">
                            <?php
                                switch($item->refund_status){
                                    case 1:
                                        echo '审核中';
                                        break;
                                    case 2:
                                        echo '处理中';
                                        break;
                                    case 3:
                                        echo '处理完毕';
                                        break;
                                    case 4:
                                        echo '审核不通过';
                                        break;
                                    case 5:
                                        echo '已取消';
                                        break;
                                }
                            ?>
                        </div>
                    </div>
                    <div class="ui-my-order-content">
                        <ul class="ui-list  ui-border-tb">
                            <li class="ui-border-t" onclick="window.location.href='/{{route("mobile.goods.detail",[$item->goods_id])}}'">
                                <div class="ui-list-img">
                                    <span style="background-image:url({{$pictureService::thumb($goods->goods_thumb, 70, 70)}})"></span>
                                </div>
                                <div class="ui-list-info">
                                    <h4 class="ui-nowrap">{{@$orderGoods->goods_name}}</h4>
                                    <h4>×{{$item->number}}</h4>

                                </div>
                            </li>
                        </ul>
                    </div>
                    <!-- <div class="ui-my-order-footer">共2件商品    实付款:   <font class="ui-font-red">¥490.00</font></div> -->
                    <div class="ui-my-order-toolbar ui-border-t">
                        <div class="ui-btn-wrap">
                            <button class="ui-btn-s ui-btn-gray" data-href="{{route('my.refund.show',[@$item->refund_sn])}}">
                                查看
                            </button>
                        </div>
                    </div>
                </div>

                @endforeach

            </li>
        </ul>
    </div>
</div>

<script src="{{ asset('/build/lib/zepto.min.js') }}"></script>
<script src="{{ asset('/build/js/frozen.js') }}"></script>
<script src="{{ asset('/build/js/app.min.js') }}"></script>
</body>
</html>